﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;

using ComLib.Notifications;
using ComLib.Scheduling.Tasks;


namespace ComLib.CMS.Models.Tasks
{

    /// <summary>
    /// BlogRoll Widget
    /// </summary>
    [Task(Name = "SendEmails", DisplayName = "Send Emails", Description = "Send emails that are in a queue.", Interval = 40)]
    public class SendEmails : ITask
    {
        /// <summary>
        /// Process the tags.
        /// </summary>
        public void Process()
        {
            Notifier.Process();
        }
    }
}
